<?php
/**
 * Created by PhpStorm.
 * User: spatra
 * Date: 15-1-6
 * Time: 下午8:10
 */

/**
 * Class UnitController
 *
 */
class UnitController extends \BaseController
{
    public function index()
    {
        return Response::json(Unit::all());
    }

    public function show($id)
    {
        return Response::json(
          Unit::findOrFail($id)
        );
    }
}